x86: Fix PoD cache size when decreasing memory
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Sep 2009 07:43:05 +0000 (08:43 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Sep 2009 07:43:05 +0000 (08:43 +0100)
commit3f394a6b337d02a2939415cbf52e5cde915a106d
treee1316c90ab0babaf59c7b67fa3e018e4ab82862e
parente4e14402c14addda748464495db705f2ce08bb80
x86: Fix PoD cache size when decreasing memory

Certain paths through p2m_pod_decrease_reservation() fail to reduce
the size of the PoD cache if the number of outstanding entries is less
than the size of the cache.  Rearrange so this doesn't happen.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/arch/x86/mm/p2m.c